package com.issac.rabbitmq.receiver;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class FanoutReceiver {

    @RabbitListener(queues = "queue-one")
    public void queue1(String msg){
        System.out.println("mq>>queue1>"+msg);
    }

    @RabbitListener(queues = "queue-two")
    public void queue2(String msg){
        System.out.println("mq>>queue2>"+msg);
    }

    @RabbitListener(queues = "queue-three")
    public void queue3(String msg){
        System.out.println("mq>>queue3>"+msg);
    }

}
